<template>
  <div class="programme-frame">
    <div class="programme-info">
      <div class="card">
        <Card class="card-width">
          <div style="display: flex; justify-content: space-between">
            <h2 class="title">应急方案</h2>
            <p class="more" @click="more('/emergencyPlan')">更多 >></p>
          </div>
          <p @click="$router.push({path: '/emergencyPlan'})">青岛市风暴潮、海浪、海啸和海冰灾害应急方案</p>
          <p @click="$router.push({path: '/emergencyPlan'})">青岛市海洋大型藻类灾害应急方案</p>
          <p @click="$router.push({path: '/emergencyPlan'})">青岛市海洋赤潮灾害应急方案</p>
        </Card>
        <Card class="card-width">
          <div style="display: flex; justify-content: space-between">
            <h2 class="title">最新警报</h2>
            <p class="more" @click="more('/trendForecast')">更多 >></p>
          </div>
          <p @click="$router.push({path: '/trendForecastDetail'})">2021年07月04日08时，青岛市海洋预报台发布了海浪解除警报</p>
          <p @click="$router.push({path: '/trendForecastDetail'})">2021年07月03日16时，青岛市海洋预报台发布了海浪蓝色警报</p>
          <p @click="$router.push({path: '/trendForecastDetail'})">2021年07月03日08时，青岛市海洋预报台发布了海浪蓝色警报</p>
        </Card>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "ProgrammeInfo",
    data() {
      return {

      }
    },
    methods: {
      more(val) {
        this.$router.push({
          path: val
        })
      }
    }
  }
</script>

<style lang="less" scoped>
  .more {
    padding: 0;
    font-size: 14px;
    color: rgb(35, 53, 109);
  }

  .title {
    position: relative;
    color: rgb(35, 53, 109);
    margin-left: 15px;
    &::before {
      position: absolute;
      top: 5px;
      left: -15px;
      content: "";
      width: 5px;
      height: 20px;
      background: rgb(35, 53, 109);
    }
  }

  p {
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    &:hover {
      color: #6561ff;
    }
  }

  .programme-frame {
    /*margin-top: 30px;*/
    width: 100%;
    .programme-info {
      width: 1200px;
      margin: 0 auto;
      height: 250px;
      display: flex;
      .card {
        width: 100%;
        padding: 30px 5px;
        display: flex;
        justify-content: space-around;
        .card-width {
          width: 590px;
        }
      }
    }
  }
</style>
